// utilities for conversion between Perl and C/C++
// (also an alert function)

//#include <windows.h>
//#undef ENOTSOCK

void report_refcount(SV* arg, char* where);

SV* create_perl_object(void* cpp_ptr, const char* classname);
void* retrieve_cpp_object(SV* perl_obj);

extensions::cookie_t code_2_cookie(SV* codesv);
SV* cookie_2_code(extensions::cookie_t cookie);
